
public class Test0516 {
	public static void main(String[] args) {
		System.out.println('c'-'a');
	}
	
    public int minNumberOfFrogs(String s) {
        int n=s.length();
        if(n%5!=0)return -1;
        int[] arr=new int[26];
        for(int i=0;i<n;i++) {
        	if(s.charAt(i)=='c') {
        		if(arr['k'-'a']!=0)arr['k'-'a']--;
        		arr['c'-'a']++;
        	}
        	if(s.charAt(i)=='r') {
        		if(arr['c'-'a']!=0)arr['c'-'a']--;
        		arr['r'-'a']++;
        	}
        	if(s.charAt(i)=='o') {
        		if(arr['r'-'a']!=0)arr['r'-'a']--;
        		arr['o'-'a']++;
        	}
        	if(s.charAt(i)=='a') {
        		if(arr['o'-'a']!=0)arr['o'-'a']--;
        		arr['a'-'a']++;
        	}
        	if(s.charAt(i)=='k') {
        		if(arr['a'-'a']!=0)arr['a'-'a']--;
        		arr['k'-'a']++;
        	}
        }
        for(int i=0;i<26;i++) {
        	if(arr[i]!=0&&i!='k'-'a') {
        		return -1;
        	}
        }
        return arr['k'-'a'];
    }
}
